package com.yunji.storage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.storage.domain
 * @Title: stock
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-08-15 14:50:31      V1.0        HuaAo       新建类
 */
@TableName("v3_stock_table")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StockDO extends BaseDelFlagDO implements Serializable {

    private static final long serialVersionUID = 3995285354897063651L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("库存ID")
    private Long stockId;

    @ApiModelProperty("所属单位ID")
    private Long belongId;

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("全部库存")
    @Excel(name = "全部库存", width = 15)
    private BigDecimal allStock;

    @ApiModelProperty("可用库存")
    @Excel(name = "可用库存", width = 15)
    private BigDecimal usableStock;

    @ApiModelProperty("不可用库存")
    @Excel(name = "不可用库存", width = 15)
    private BigDecimal disableStock;

    @ApiModelProperty("占用库存")
    @Excel(name = "占用库存", width = 15)
    private BigDecimal frozenStock;

    @ApiModelProperty("预警值")
    @Excel(name = "预警值", width = 15)
    private BigDecimal warmValue;

    @ApiModelProperty("备注信息")
    @Excel(name = "备注信息", width = 15)
    private String remarks;
}